package com.qian.service.ddj.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 余额快照
 */
@Getter
@Setter
@ToString
@Entity
@DynamicInsert
@DynamicUpdate
public class DdjBalanceSnapshot extends BaseEntity<Long> {

    @CreationTimestamp
    private Date createTime;
    private BigDecimal balance;
    private BigDecimal lockMoney;
    private Integer userId;
    private String username;

}
